from django.db import models

# Create your models here.


class UserInfo(models.Model):
    user_id = models.AutoField(primary_key=True)
    user_email = models.CharField(max_length=20)
    user_name = models.CharField(max_length=20)
    user_password = models.IntegerField()
    user_repassword = models.IntegerField()
    user_gender = models.BooleanField(default=True)
    user_city = models.CharField(max_length=10, null=True, blank=True)
    user_lable = models.CharField(max_length=30, default='很懒, 啥也没写')
    # user_captcha = forms.CaptchaField(label='验证码')
    user_photo = models.ImageField(upload_to='photo', null=True, default='photo/p1.png')

    class Meta:
        db_table = 'userinfo'
